
import 'package:equatable/equatable.dart';

abstract class RemoteEvent extends Equatable {

  String vin;
  RemoteEvent({this.vin}) : super([vin]);
}

class RemoteLockDoor extends RemoteEvent {

  String vin;
  RemoteLockDoor(this.vin) : super(vin: vin);

  @override
  String toString() => "DOOR_LOCK";
}

class RemoteUnLockDoor extends RemoteEvent {

  String vin;
  RemoteUnLockDoor(this.vin) : super(vin: vin);

  bool shouldAuthentication = false;
  @override
  String toString() => "DOOR_UNLOCK";
}

class RemoteHorn extends RemoteEvent {

  String vin;
  RemoteHorn(this.vin) : super(vin: vin);

  @override
  String toString() => "HORN_BLOW";

}

class RemoteFlash extends RemoteEvent {

  String vin;
  RemoteFlash(this.vin) : super(vin: vin);

  @override
  String toString() => "LIGHT_FLASH";

}

class RemoteFallBack extends RemoteEvent {

  String vin;
  RemoteFallBack({this.vin}) : super(vin: vin);

  @override
  String toString() => "RemoteFallBack";

}

